package ui.administrator;

import java.awt.EventQueue;

import javax.swing.JInternalFrame;
import java.awt.Color;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;
import javax.swing.JTable;
import javax.swing.JButton;
import javax.swing.table.DefaultTableModel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class VizualizareVoluntari extends JPanel {
	private JTable table;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					VizualizareVoluntari frame = new VizualizareVoluntari();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public VizualizareVoluntari() {
		
		setBorder(null);
		setBackground(new Color(240, 255, 255));
		setBounds(100, 100, 923, 515);
		setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(57, 30, 760, 258);
		add(scrollPane);
		
		table = new JTable();
		table.setFont(new Font("Arial", Font.PLAIN, 14));
		table.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
				"Nume", "Prenume", "CNP", "Adresa", "Telefon"
			}
		) {
			Class[] columnTypes = new Class[] {
				String.class, String.class, String.class, String.class, String.class
			};
			public Class getColumnClass(int columnIndex) {
				return columnTypes[columnIndex];
			}
		});
		scrollPane.setViewportView(table);
		
		JButton btnNewButton = new JButton("Sterge Voluntar");
		btnNewButton.setFont(new Font("Arial", Font.PLAIN, 14));
		btnNewButton.setBounds(682, 338, 135, 23);
		add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("Editeaza");
		btnNewButton_1.setFont(new Font("Arial", Font.PLAIN, 14));
		btnNewButton_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
			}
		});
		btnNewButton_1.setBounds(529, 338, 124, 23);
		add(btnNewButton_1);
		
		JButton btnCautaAsistent = new JButton("Cauta Voluntar");
		btnCautaAsistent.setFont(new Font("Arial", Font.PLAIN, 14));
		btnCautaAsistent.setBounds(352, 338, 135, 23);
		add(btnCautaAsistent);
		
		textField = new JTextField();
		textField.setBounds(100, 339, 210, 20);
		add(textField);
		textField.setColumns(10);
		
		JLabel lblCnp = new JLabel("CNP:");
		lblCnp.setFont(new Font("Arial", Font.BOLD, 14));
		lblCnp.setBounds(57, 341, 46, 14);
		add(lblCnp);

	}
}
